<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="col-md-12">
	<div class="panel-search">
		<form class="form-inline" action="/product/searchList">
			<div class="form-group">
				<label class="control-label">请选择仓库：</label><select
					name="warehouseId" style="width: 59%;" class="form-control">
					<option value='0'>全部</option>
					<c:forEach items="${warehouses}" var="warehouse" varStatus="vs">
						<option value="${warehouse.id}">${warehouse.name}</option>
					</c:forEach>
				</select>
			</div>
			<br>
			<div class="form-group">
				<label class="control-label">产品状态：</label><select
					name="productStatusId" style="width: 59%;" class="form-control">
					<option value='0'>全部</option>
					<c:forEach items="${productStatuses}" var="productStatus"
						varStatus="vs">
						<option value='${productStatus.id }'>${productStatus.name }</option>
					</c:forEach>

				</select>
			</div>
			<br>
			<div class="form-group">
				<label class="control-label">产品名称：</label><input name="productName"
					class="form-control" type="text" placeholder="产品名称">
				<button style="width: 100px;" type="button" class="btn btn-primary"
					onclick="search();">搜索</button>
			</div>
		</form>
		<div class="btn-div">
			<div class="div-left">
				<button style="margin-left: 5px;" type="button"
					class="btn btn-warning" onclick="add('/product/product')">新增产品</button>
			</div>
		</div>
	</div>
	<div class="panel-content"></div>
</div>
<script type="text/javascript"
	src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>
<script type="text/javascript">
	$(function() {
		search();
	});
</script>